<?php
class Size extends AppModel {

	public $name = 'Size';
        public $validate = array(
            'value' => array(
                'required' => array(
                    'rule' => 'notEmpty',
                    'message' => 'please type product\'s size value'
                ),
            ),
            'price' => array(
                'required' => array(
                    'rule' => 'notEmpty',
                    'message' => 'please type product\'s size'
                ),
                'numberformat' => array(
                    'rule' => array('numeric'),
                    'message' => 'please type decimal number'
                ),
            ),
        );

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	public $belongsTo = array(
			'Product' => array('className' => 'Product',
								'foreignKey' => 'product_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

}
?>